Make theme fallback working with the new names
authorMatthias Clasen <mclasen@redhat.com>
Fri, 2 Apr 2021 02:02:38 +0000 (22:02 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 2 Apr 2021 02:02:38 +0000 (22:02 -0400)
commitfd329e0ec582d7562f444bf792909906d41a7e5a
treeb1184348a0b6376285309045070e071b22e66652
parent0bf3e4c25b0d49407f2a1638a5666e47145f0f13
Make theme fallback working with the new names

Since we are likely going to see theme names like
Adwaita and HighContrast, make fallback work as follows:

Adwaita -> Default
Adwaita:dark -> Default:dark
HighContrast -> Default:hc
HighContrast:dark -> Default:hc-dark
HighContrastInverse -> Default:hc-dark

Other themes will fall back to Default, as before.
gtk/gtkcssprovider.c